export default function (data:any){
    const result = []
    const keys = [];
    const values = [];
    data.forEach((item:any)=>{
        Object.values(item).forEach((e:any)=>{
           if(typeof e === 'string'){
               keys.push(e)
           }else if(typeof e === "number") {
               values.push(e)
           }
        })
    })
    result.push(keys)
    result.push(values)
    return result
}
